export class Card{
    suit=''
    rank=0
    constructor(suit,rank){
        this.suit=suit;
        this.rank=rank;
    }
    toString(){
        let new_rank=''
        switch(this.rank){
            case 14:{
                new_rank='A'
                break
            }
            case 11:{
                new_rank='J'
                break
            }
            case 12:{
                new_rank='Q'
                break
            }
            case 13:{
            new_rank='k'
            break
           }
            default:{
                new_rank=this.rank+''
                break
            }
        }
        return this.suit+new_rank
    }
}
//let card=new Card('红桃',11)
//console.log(card.toString());